package com.example.abe.diandi.user.activity;

import android.widget.ImageView;
import android.widget.TextView;

import com.example.BindView;
import com.example.OnClick;
import com.example.abe.diandi.R;
import com.example.abe.diandi.base.BaseActivity;
import com.example.abe.diandi.main.AppConfig;
import com.example.abe.diandi.user.model.UserModel;

import example.abe.com.framework.imageloader.ImageLoader;

public class UserInfoActivity extends BaseActivity {

    @BindView(R.id.act_user_info_tv_name)
    protected TextView mTvName;

    @BindView(R.id.act_user_info_tv_password)
    protected TextView mTvPassword;

    @BindView(R.id.act_user_info_tv_nick_name)
    protected TextView mTvNick;

    @BindView(R.id.act_user_info_tv_name)
    protected ImageView mIvIcon;

    @Override
    public int getLayoutID() {
        return R.layout.activity_user_info;
    }

    @Override
    public void initData() {

    }

    @Override
    public void initView() {
        UserModel userModel = AppConfig.getUserModel();
        ImageLoader.getInstance().getImage(mIvIcon, userModel.getIcon());
        mTvName.setText(userModel.getName());
        mTvPassword.setText(R.string.user_password);
        mTvNick.setText("戴益波");
    }

    @OnClick(R.id.act_user_info_btn_gesture_lock)
    public void onGestureLockClick(){

    }

}
